package com.dayu.common.exception;

/**
 * @author dayu
 * @version 1.0
 * @email dayu007@foxmail.com
 * @date 2021/5/13 7:29
 * @description
 */
public class NoStockException extends RuntimeException {
    private Long skuId;
    private String msg;
    public Long getSkuId() {
        return skuId;
    }

    public String getMsg() {
        return msg;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public NoStockException(Long skuId) {
        super("商品skuId:"+skuId+";没有足够的库存");
    }

    public NoStockException(String msg) {
        super(msg);
    }
}
